from django.urls import path
from .views import *

urlpatterns=[
	#后台首页
	path('',IndexViews.index,name="myadmin_index"), # 1.路径,2.方法,3.路径的名字
	# 后台登陆页面
	path('login',IndexViews.mylogin,name="myamdin_login"),
	path('dologin',IndexViews.mydologin,name="myadmin_dologin"),
	path('yzm',IndexViews.verifycode,name="myadmin_yzm"),
	path('logout',IndexViews.logout,name="myadmin_logout"),


	#后台部门管理
	path('branch/index',BranchViews.index,name="myadmin_branch_index"), 
	path('branch/add',BranchViews.add,name="myadmin_branch_add"),
	path('branch/insert',BranchViews.insert,name="myadmin_branch_insert"),
	path('branch/delete',BranchViews.delete,name="myadmin_branch_delete"),
	path('branch/edit',BranchViews.edit,name="myadmin_branch_edit"),


	#后台员工管理
	path('staff/index',StaffViews.index,name="myadmin_staff_index"), 
	path('staff/add',StaffViews.add,name="myadmin_staff_add"),
	path('staff/insert',StaffViews.insert,name="myadmin_staff_insert"),
	path('staff/delete',StaffViews.delete,name="myadmin_staff_delete"),
	path('staff/edit/<int:bid>',StaffViews.edit,name="myadmin_staff_edit"),
	path('staff/update',StaffViews.update,name="myadmin_staff_update"),
 


	#后台考勤管理
	path('attendance/index',AttendanceViews.index,name="myadmin_attendance_index"), 


	#后台请假管理
	path('leave/index',LeaveViews.index,name="myadmin_leave_index"), 


	#后台工资管理
	path('pay/index',PayViews.index,name="myadmin_pay_index"), 


]